package com.xst.model;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * Order entity. @author MyEclipse Persistence Tools
 */

public class Order implements java.io.Serializable {

	// Fields

	private Integer id;
	private Customer customer;
	private Date startDate;
	private Date endDate;
	private String status;
	private String isSign;
	private String takeName;
	private String remark;
	private Set orderItems = new HashSet(0);

	// Constructors

	/** default constructor */
	public Order() {
	}

	/** minimal constructor */
	public Order(Date startDate, String status, String isSign) {
		this.startDate = startDate;
		this.status = status;
		this.isSign = isSign;
	}

	/** full constructor */
	public Order(Customer customer, Date startDate, Date endDate,
			String status, String isSign, String takeName, String remark,
			Set orderItems) {
		this.customer = customer;
		this.startDate = startDate;
		this.endDate = endDate;
		this.status = status;
		this.isSign = isSign;
		this.takeName = takeName;
		this.remark = remark;
		this.orderItems = orderItems;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Customer getCustomer() {
		return this.customer;
	}

	public void setCustomer(Customer customer) {
		this.customer = customer;
	}

	public Date getStartDate() {
		return this.startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public Date getEndDate() {
		return this.endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getIsSign() {
		return this.isSign;
	}

	public void setIsSign(String isSign) {
		this.isSign = isSign;
	}

	public String getTakeName() {
		return this.takeName;
	}

	public void setTakeName(String takeName) {
		this.takeName = takeName;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Set getOrderItems() {
		return this.orderItems;
	}

	public void setOrderItems(Set orderItems) {
		this.orderItems = orderItems;
	}

}